package com.lemobar.pay.model.wxpay.response;

import lombok.Data;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

/**
 * 微信 关闭订单 响应
 * JSAPI支付 https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_3
 * 小程序支付 https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=9_3
 * APP支付 https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_3&index=5
 */
@Data
@Root(name = "xml", strict = false)
public class WxPayCloseResponse {
    /**
     * 返回状态码
     */
    @Element(name = "return_code")
    private String returnCode;

    /**
     * 返回信息
     */
    @Element(name = "return_msg")
    private String returnMsg;
    /**
     * 公众账号ID
     */
    @Element(name = "appid", required = false)
    private String appid;

    /**
     * 商户号
     */
    @Element(name = "mch_id", required = false)
    private String mchId;

    /**
     * 随机字符串
     */
    @Element(name = "nonce_str", required = false)
    private String nonceStr;

    /**
     * 签名
     */
    @Element(name = "sign", required = false)
    private String sign;

    /**
     * 业务结果
     */
    @Element(name = "result_code", required = false)
    private String resultCode;

    /**
     * 业务结果描述
     */
    @Element(name = "result_msg", required = false)
    private String resultMsg;

    /**
     * 错误代码
     */
    @Element(name = "err_code", required = false)
    private String errCode;

    /**
     * 错误代码描述
     */
    @Element(name = "err_code_des", required = false)
    private String errCodeDes;

}
